package pe.edu.upc.dsd.jjjar.upcbank.server.dao.impl;

import pe.edu.upc.dsd.jjjar.upcbank.resources.client.model.UserProfile;
import pe.edu.upc.dsd.jjjar.upcbank.server.dao.UserDAO;
import pe.edu.upc.dsd.jjjar.upcbank.server.database.DataBase;

public class UserImpl implements UserDAO{

	
	
	
	
	@Override
	public UserProfile select(String nrotarjeta, String password) {
		
		for(UserProfile userProfile : DataBase.profiles){
			if(userProfile.getNrotarjeta().equals(nrotarjeta)){
				return userProfile;
			}
		}
		
		return null;
	}

}
